package controller

import (
	"common-admin/model"
	"github.com/gin-gonic/gin"
	"net/http"
	"strconv"
)

func Show(c *gin.Context) {
	id, err := strconv.Atoi(c.Param("id"))
	if err != nil {
		c.String(http.StatusInternalServerError, "参数错误")
	}
	var orderModel model.OrderWholesale
	order := orderModel.FindById(id)
	//c.String(http.StatusOK,order.OrderNo)
	c.JSON(http.StatusOK, gin.H{"data": order})
}

func List(c *gin.Context) {

}
